import { createRouter, createWebHashHistory } from "vue-router"
import Main from "../view/Main.vue"
import ChatWindow from "../components/ChatWindow.vue";
import BlankComponent from "../components/BlankComponent.vue";
import PersonalPage from "../components/PersonalPage.vue";
import Login from "../view/Login.vue";
const routes = [
    {
        path: '/', 
        component: Main,
        children: [
            {
                path: '/',
                component: ChatWindow
            },
            {
                path: 'notFound',
                component: BlankComponent
            },
            {
                path: 'personal',
                component: PersonalPage
            }
        ]
    },
    {
        path: '/login',
        component: Login,
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router